/**
 * 
 */
package org.codehaus.groovy.grails.plugins.autodelegator.delegator

import org.codehaus.groovy.grails.plugins.autodelegator.annotation.Delegate;

/**
 * @author <a href="mailto:franz.see@gmail.com">See, Franz Allan Valencia</a>
 *
 */
public class ClassWithDelegateThatHasDeclaredMethod{

	@Delegate
	def classWithDeclaredMethod = new ClassWithDeclaredMethod();

	public String uninvokedDynamicHello() {
		return 'this should never be called dynamically';
	}

	ClassWithDelegateThatHasDeclaredMethod() {
		ClassWithDelegateThatHasDeclaredMethod.metaClass.hello = this.&uninvokedDynamicHello;
	}
}
